package com.yesido.springcloud.service.impl;

import com.yesido.pojo.User;
import com.yesido.springcloud.dao.UserMapper8002;
import com.yesido.springcloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: my-study
 * @description:
 * @author: yuliang
 * @create: 2021-06-07 16:09
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper8002 userMapper;
    public List<User> findAllUsers() {
        return userMapper.findAllUsers();
    }

    public User findUserById(int id) {
        return userMapper.findUserById(id);
    }

    public int addUser(User user) {
        return userMapper.addUser(user);
    }
}